﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CertificateMan.aspx.cs" Inherits="CertificateMan"
    MasterPageFile="~/Site.master" %>

<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <h1 class="DemoTitle">
        证书信息管理
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <table>
            <tr>
                <td>
                    <asp:FileUpload ID="fuExcel" runat="server" Width="200px" />
                </td>
                <td>
                    <dx:ASPxButton ID="btnImport" runat="server" Text="确定导入" OnClick="btnImport_Click"
                        ClientIDMode="AutoID" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <dx:ASPxGridView ID="gridView" runat="server" AutoGenerateColumns="False" ClientIDMode="AutoID"
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
            DataSourceID="LSMDSource" KeyFieldName="dwbh" Width="100%">
            <Columns>
                <dx:GridViewDataTextColumn Caption="单位编号" FieldName="dwbh" VisibleIndex="0" Visible="false">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="单位名称" FieldName="dwmc" VisibleIndex="1">
                    <PropertiesTextEdit MaxLength="40" Width="200px" Style-Font-Size="10pt">
                        <ValidationSettings CausesValidation="true">
                            <RequiredField IsRequired="true" ErrorText="单位名称不可为空！"></RequiredField>
                        </ValidationSettings>
                        <Style Font-Size="10pt"></Style>
                    </PropertiesTextEdit>
                    <EditCellStyle Font-Size="10pt">
                    </EditCellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn Caption="所属城区" FieldName="sscq" VisibleIndex="2" Name="t_sscq">
                    <PropertiesComboBox Width="200px" ValueType="System.String" Style-Font-Size="10pt">
                        <Style Font-Size="10pt"></Style>
                    </PropertiesComboBox>
                    <EditFormSettings CaptionLocation="Near" />
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn Caption="服务地址" FieldName="fwdz" VisibleIndex="3">
                    <PropertiesTextEdit MaxLength="40" Width="200px" Style-Font-Size="10pt">
                        <Style Font-Size="10pt"></Style>
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn Caption="发证机关" FieldName="fzjg" VisibleIndex="4" Name="t_fzjg">
                    <PropertiesComboBox Width="200px" ValueType="System.String" Style-Font-Size="10pt">
                        <Style Font-Size="10pt"></Style>
                    </PropertiesComboBox>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn Caption="证号" FieldName="zh" VisibleIndex="5">
                    <PropertiesTextEdit MaxLength="40" Width="200px" Style-Font-Size="10pt">
                        <ValidationSettings CausesValidation="true">
                            <RequiredField IsRequired="true" ErrorText="证号不可为空！"></RequiredField>
                        </ValidationSettings>
                        <Style Font-Size="10pt"></Style>
                    </PropertiesTextEdit>
                    <EditCellStyle Font-Size="10pt">
                    </EditCellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="负责人" FieldName="fzr" VisibleIndex="6">
                    <PropertiesTextEdit MaxLength="40" Width="200px" Style-Font-Size="10pt">
                        <ValidationSettings CausesValidation="true">
                            <RequiredField IsRequired="true" ErrorText="负责人不可为空！"></RequiredField>
                        </ValidationSettings>
                        <Style Font-Size="10pt"></Style>
                    </PropertiesTextEdit>
                    <EditCellStyle Font-Size="10pt">
                    </EditCellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn Caption="单位性质" FieldName="dwxz" VisibleIndex="7" Name="t_dwxz">
                    <PropertiesComboBox Width="200px" ValueType="System.String" Style-Font-Size="10pt">
                        <Style Font-Size="10pt"></Style>
                    </PropertiesComboBox>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn Caption="发证日期" FieldName="fzrq" VisibleIndex="8">
                    <PropertiesTextEdit Width="200px">
                        <Style Font-Size="10pt">
                            
                        </Style>
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="证书打印" VisibleIndex="9">
                    <EditFormSettings Visible="False" />
                    <DataItemTemplate>
                        <a href="WebPrint/PrintZs.aspx?ZID=<%#Eval("dwbh") %>">证书(正本)打印</a> <a href="WebPrint/Print.aspx?PID=<%#Eval("dwbh") %>">
                            证书(副本)打印</a>
                    </DataItemTemplate>
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsEditing Mode="PopupEditForm" PopupEditFormHorizontalAlign="WindowCenter"
                PopupEditFormVerticalAlign="WindowCenter" PopupEditFormWidth="700px" PopupEditFormHeight="200px"
                EditFormColumnCount="2" />
            <Settings ShowFilterRow="True" />
            <SettingsEditing Mode="PopupEditForm" PopupEditFormWidth="700px" PopupEditFormHeight="200px"
                PopupEditFormHorizontalAlign="WindowCenter" PopupEditFormVerticalAlign="WindowCenter">
            </SettingsEditing>
            <Settings ShowFilterRow="True"></Settings>
            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <StylesPager>
                <PageNumber ForeColor="#3E4846">
                </PageNumber>
                <Summary ForeColor="#1E395B">
                </Summary>
            </StylesPager>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
        </dx:ASPxGridView>
        <dx:LinqServerModeDataSource ID="LSMDSource" runat="server" ContextTypeName="DAL.DataClassesDataContext"
            EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="css_dwxx" />
    </div>
</asp:Content>
